﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SalaDeEnsayo.ApplicationService.Model.Entity;

namespace SalaDeEnsayo.ApplicationService
{
    public class DetalleVentasService : BaseService
    {

        #region [ Metodos Publicos ]

        public int AgregarDetalleVenta(DetalleVenta dv)
        {
            Object[] parms = new Object[4];
            parms[0] = dv.id_venta;
            parms[1] = dv.id_producto;
            parms[2] = dv.precio_venta;
            parms[3] = dv.cantidad;
            try
            {
                int res = this.SalaDeEnsayoDB.ExecuteNonQuery("DetallesVentaAgregar", parms);
                return res;
            }
            catch
            {
                return 0;
            }
        }


        #endregion
    }

}
